package cn.com.ctbri.geomonitor.model;

import java.io.Serializable;

public class Employee implements Serializable {
    private String no;

    private String empno;

    private String name;

    private String pass;

    private String fkDept;

    private String fkDuty;

    private String leader;

    private String sid;

    private String tel;

    private String email;

    private Integer numofdept;

    private Integer idx;

    private static final long serialVersionUID = 1L;

    public String getNo() {
        return no;
    }

    public void setNo(String no) {
        this.no = no == null ? null : no.trim();
    }

    public String getEmpno() {
        return empno;
    }

    public void setEmpno(String empno) {
        this.empno = empno == null ? null : empno.trim();
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name == null ? null : name.trim();
    }

    public String getPass() {
        return pass;
    }

    public void setPass(String pass) {
        this.pass = pass == null ? null : pass.trim();
    }

    public String getFkDept() {
        return fkDept;
    }

    public void setFkDept(String fkDept) {
        this.fkDept = fkDept == null ? null : fkDept.trim();
    }

    public String getFkDuty() {
        return fkDuty;
    }

    public void setFkDuty(String fkDuty) {
        this.fkDuty = fkDuty == null ? null : fkDuty.trim();
    }

    public String getLeader() {
        return leader;
    }

    public void setLeader(String leader) {
        this.leader = leader == null ? null : leader.trim();
    }

    public String getSid() {
        return sid;
    }

    public void setSid(String sid) {
        this.sid = sid == null ? null : sid.trim();
    }

    public String getTel() {
        return tel;
    }

    public void setTel(String tel) {
        this.tel = tel == null ? null : tel.trim();
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email == null ? null : email.trim();
    }

    public Integer getNumofdept() {
        return numofdept;
    }

    public void setNumofdept(Integer numofdept) {
        this.numofdept = numofdept;
    }

    public Integer getIdx() {
        return idx;
    }

    public void setIdx(Integer idx) {
        this.idx = idx;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        Employee other = (Employee) that;
        return (this.getNo() == null ? other.getNo() == null : this.getNo().equals(other.getNo()))
            && (this.getEmpno() == null ? other.getEmpno() == null : this.getEmpno().equals(other.getEmpno()))
            && (this.getName() == null ? other.getName() == null : this.getName().equals(other.getName()))
            && (this.getPass() == null ? other.getPass() == null : this.getPass().equals(other.getPass()))
            && (this.getFkDept() == null ? other.getFkDept() == null : this.getFkDept().equals(other.getFkDept()))
            && (this.getFkDuty() == null ? other.getFkDuty() == null : this.getFkDuty().equals(other.getFkDuty()))
            && (this.getLeader() == null ? other.getLeader() == null : this.getLeader().equals(other.getLeader()))
            && (this.getSid() == null ? other.getSid() == null : this.getSid().equals(other.getSid()))
            && (this.getTel() == null ? other.getTel() == null : this.getTel().equals(other.getTel()))
            && (this.getEmail() == null ? other.getEmail() == null : this.getEmail().equals(other.getEmail()))
            && (this.getNumofdept() == null ? other.getNumofdept() == null : this.getNumofdept().equals(other.getNumofdept()))
            && (this.getIdx() == null ? other.getIdx() == null : this.getIdx().equals(other.getIdx()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getNo() == null) ? 0 : getNo().hashCode());
        result = prime * result + ((getEmpno() == null) ? 0 : getEmpno().hashCode());
        result = prime * result + ((getName() == null) ? 0 : getName().hashCode());
        result = prime * result + ((getPass() == null) ? 0 : getPass().hashCode());
        result = prime * result + ((getFkDept() == null) ? 0 : getFkDept().hashCode());
        result = prime * result + ((getFkDuty() == null) ? 0 : getFkDuty().hashCode());
        result = prime * result + ((getLeader() == null) ? 0 : getLeader().hashCode());
        result = prime * result + ((getSid() == null) ? 0 : getSid().hashCode());
        result = prime * result + ((getTel() == null) ? 0 : getTel().hashCode());
        result = prime * result + ((getEmail() == null) ? 0 : getEmail().hashCode());
        result = prime * result + ((getNumofdept() == null) ? 0 : getNumofdept().hashCode());
        result = prime * result + ((getIdx() == null) ? 0 : getIdx().hashCode());
        return result;
    }
}